import request from "../../utils/request";

export function getConcertList(params) {
    return request.get({
        url: '/performance',
        params: params
    });
}

export function getPerformanceInfo(id) {
    return request.get({
        url: `/performance/${id}`,
    });
}

export function wannaPerformance(data) {
    return request.put({
        url: `/performance/wanna`,
        data: data
    });
}

export function getAllWannaPerformanceIds() {
    return request.get({
        url: `/performance/wanna`,
    });
}

export function getWannaPerformance() {
    return request.get({
        url: `/performance/wannaPerformance`,
    });
}

export function getDiscountPerformance() {
    return request.get({
        url: `/performance/discount`,
    });
}
export function getNewsPerformance() {
    return request.get({
        url: `/performance/news`,
    });
}

export function getStartSaleOfTodayPerformance(){
    return request.get({
        url: `/performance/startSaleOfDay`,
    });
}

export function getStartSaleOfNearDayPerformance(){
    return request.get({
        url: `/performance/willSaleOfNearDay`,
    });
}
export function getRecommendPerformance(id){
    return request.get({
        url: `/performance/recommend/${id}`,
    });
}

export function getBanner(){
    return request.get({
        url: `/performance/banner`,
    });
}

